package com.letfox.ad.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.letfox.ad.dao.ADServingMaterialDao;
import com.letfox.ad.model.ADServingMaterial;
import com.letfox.ad.service.ADServingMaterialService;

@Service
public class ADServingMaterialServiceImpl implements ADServingMaterialService {
	
	@Autowired
	private ADServingMaterialDao adServingMaterialDao;

	@Override
	public int deleteByPrimaryKey(String adMaterialId) {
		return adServingMaterialDao.deleteByPrimaryKey(adMaterialId);
	}

	@Override
	public int insert(ADServingMaterial record) {
		return adServingMaterialDao.insert(record);
	}

	@Override
	public ADServingMaterial selectByPrimaryKey(String adMaterialId) {
		return adServingMaterialDao.selectByPrimaryKey(adMaterialId);
	}

	@Override
	public int updateByPrimaryKeySelective(ADServingMaterial record) {
		return adServingMaterialDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<ADServingMaterial> selectAll() {
		return adServingMaterialDao.selectAll();
	}

	@Override
	public List<ADServingMaterial> queryMaterial(int value) {
		return adServingMaterialDao.queryMaterial(value);
	}

	@Override
	public List<Map<String, String>> queryWithinMaterial(Map<String, Object> map) {
		return adServingMaterialDao.queryWithinMaterial(map);
	}

	@Override
	public List<Map<String, String>> queryOutsideMaterial(
			Map<String, Object> map) {
		return adServingMaterialDao.queryOutsideMaterial(map);
	}


}
